package com.plian.system.dto.zzd;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
@ApiModel(value = "ZZDIndicatorsQuery",description = "浙政钉-国资总览-指标穿透")
public class ZZDIndicatorsQuery {


    @Pattern(regexp = "^\\d{4}-((0([1-9]))|(1(0|1|2)))$", message = "统计日期格式错误")
    @ApiModelProperty(value = "统计日期 2020-01 默认当前时间", required = true)
    private String reportTime;

    @Max(value = 2, message = "企业类型错误")
    @Min(value = 1, message = "企业类型错误")
    @NotNull(message = "企业类型为空")
    @ApiModelProperty(value = "企业类型：1-全大市；2-监管企业", required = true)
    private Integer orgType;

    @NotBlank(message = "属性值为空")
    @ApiModelProperty(value = "属性值为国资总览各指标columnName", required = true)
    private String columnName;

    @Max(value = 3, message = "排序方式错误")
    @Min(value = 1, message = "排序方式错误")
    @NotNull(message = "排序方式为空")
    @ApiModelProperty(value = "排序方式：1-降序；2-标序；3-升序", required = true)
    private Integer orderType;

    @ApiModelProperty("columnCode")
    private String columnCode;
}
